//
//  API.h
//  citzenWorkStation
//
//  Created by yang qing on 2018/2/12.
//  Copyright © 2018年 yang qing. All rights reserved.
//

#ifndef API_h
#define API_h



#ifdef DEBUG
#define BASE_URL @"http://219.149.226.180:7880/publicworkstation"
#define FILE_BASE_URL @"http://219.149.226.180:7884"
#define MAP_GRID_URL @"http://122.137.242.12:6080/arcgis/rest/services/jilin/jilin_community/MapServer/0"
#else
#define BASE_URL @"http://219.149.226.122:7884/"
#define FILE_BASE_URL @"http://219.149.226.222:7880/publicworkstation"
#define MAP_GRID_URL @"http://122.137.242.12:6080/arcgis/rest/services/jilin/jilin_community/MapServer/0"
#endif

//登录
#define LOGIN [BASE_URL stringByAppendingString:@"/userManage/pwdLogin.action"]
//注册发送验证码
#define RegMobileCode  [BASE_URL stringByAppendingString:@"/userManage/regMobileCode.action"]
//找回密码
#define FindPsw [BASE_URL stringByAppendingString:@"/userManage/forgetPassword.action"]
//更新用户信息
#define UpdateUserInfo [BASE_URL stringByAppendingString:@"/userManage/updateUserInfo.action"]
//注册用户
#define UserRegister [BASE_URL stringByAppendingString:@"/userManage/userRegister.action"]
//实名认证
#define IdentifyAuthentication [BASE_URL stringByAppendingString:@"/userManage/identifyAuthentication.action"]


//获取图片路径
#define GetFilePath [FILE_BASE_URL stringByAppendingString:@"/filemanager/filePathServlet"]
//上传图片
#define UplUoadImage [FILE_BASE_URL stringByAppendingString:@"/partselection/common/uploadImage.do"]

#define GetGridByGeo [MAP_GRID_URL stringByAppendingString:@"/query?geometryType=esriGeometryPoint&inSR=&spatialRel=esriSpatialRelIntersects&outFields=*&returnGeometry=false&returnIdsOnly=false&returnCountOnly=false&f=pjson"]
#endif /* API_h */


